<template>
	<div class="home">
		<div class="btnbox">
			<div class="btnbg" @click='gotomyorder'>
				<div class="btntxt fsize36w">未发货订单</div>
				<div class="btnnum fsize80w">9</div>
			</div>
			<div class="btnbg bgsj" @click='gotoupfoods'>
				<div class="btntxt fsize36w">已上架商品</div>
				<div class="btnnum fsize80w">17</div>
			</div>
		</div>
		<div class="bcbox"></div>
		<div class="breedinglist">
			<div class="breedingtxtbox flcm">
				<div class='lable'></div><span class='fsize32pay'>今日待采集</span>
			</div>
			<div class="breedinglistitem" @click='gotocollectlist'>
				<div class="breedingli">
					<span class='fsize28l'>编号：</span><span class='fsize285'>#186</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>耳号：</span><span class='fsize285'>#186</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>所在猪舍号：</span><span class='fsize285'>3号</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>所在猪栏号：</span><span class='fsize285'>3号</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>出生日期：</span><span class='fsize285'>2018-03-31</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>年龄：</span><span class='fsize285'>24个月</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>下一次采集时间：</span><span class='fsize285'>今天</span>
				</div>
				<image src="../../../static/breeding/daitianxie.png" class="img160 imgrt" mode=""></image>
			</div>
			<div class="breedinglistitem" @click='gotosurroundingswatch'>
				<div class="breedingli">
					<span class='fsize28l'>流水号：</span><span class='fsize285'>161651651616</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>公猪耳号：</span><span class='fsize285'>#186</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>包装号：</span><span class='fsize285'>0001215121512151</span>
				</div>
				<div class="breedingli">
					<span class='fsize28l'>创建时间：</span><span class='fsize285'>2020-03-31 10:00:00</span>
				</div>
				<image src="../../../static/breeding/yiwancheng.png" class="img160 imgrt" mode=""></image>
			</div>
		</div>




		<div class="tabbar fl">
			<div class="tabbarline"></div>
			<div class="tabbaritem">
				<div class="tabimgbox flcm">
					<image src="../../../static/administrator/tabbar/home-hl.png" class="img44" mode=""></image>
				</div>
				<div class="tabbartxt fsize24b">首页</div>
			</div>
			<div class="tabbaritem" @click='gotomyorder'>
				<div class="tabimgbox flcm">
					<image src="../../../static/administrator/tabbar/order.png" class="img44" mode=""></image>
				</div>
				<div class="tabbartxt fsize24">订单</div>
			</div>
			<div class="tabbaritem" @click='gotoupfoods'>
				<div class="tabimgbox flcm">
					<image src="../../../static/administrator/tabbar/car.png" class="img44" mode=""></image>
				</div>
				<div class="tabbartxt fsize24">商品</div>
			</div>
			<div class="tabbaritem" @click='gotocollectlist'>
				<div class="tabimgbox flcm">
					<image src="../../../static/administrator/tabbar/collect.png" class="img44" mode=""></image>
				</div>
				<div class="tabbartxt fsize24">采集</div>
			</div>
			<div class="tabbaritem">
				<div class="tabimgbox flcm">
					<image src="../../../static/administrator/tabbar/install.png" class="img44" mode=""></image>
				</div>
				<div class="tabbartxt fsize24">设置</div>
			</div>
		</div>
	</div>


</template>

<script>
	export default {
		data() {
			return {
				hour: 10,
				minute: 50,
				second: 32,
				nowday: '2020-05-18',
				dateshow: false,
			};
		},
		onLoad: function() {

		},
		methods: {
			gotosurroundingswatch(e) {
				uni.navigateTo({
					url: '../surroundingswatch/surroundingswatch'
				});
			},
			gotocollectlist(e) {
				uni.navigateTo({
					url: '../collectlist/collectlist'
				});
			},
			gotoupfoods(e) {
				uni.navigateTo({
					url: '../upfoods/upfoods'
				});
			},
			gotomyorder(e) {
				uni.navigateTo({
					url: '../myorder/myorder'
				});
			},
			bindDateChange(e) {
				this.nowday = e.target.value
			},

		}
	}
</script>

<style lang="less">
	.home {
		padding-bottom: 100rpx;
	}
	.btnbox {
		padding: 32rpx;
		display: flex;
		justify-content: space-between;
		.btnbg {
			background: url(../../../static/administrator/red.png);
			background-size: cover;
			width: 334rpx;
			height: 284rpx;

			.btntxt {
				padding: 16rpx 0 0 24rpx;
			}

			.btnnum {
				text-align: center;
				margin-top: 56rpx;
			}
		}

		.bgsj {
			background: url(../../../static/administrator/blue.png);
			background-size: cover;
		}
	}

	.breedinglist {
		padding: 32rpx;

		.lable {
			width: 8rpx;
			height: 26rpx;
			background: rgba(24, 108, 242, 1);
			border-radius: 4rpx;
			margin-right: 16rpx;
		}

		.breedinglistitem {
			margin-top: 38rpx;
			padding: 24rpx;
			box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.12);
			border-radius: 12px;
			position: relative;

			.imgrt {
				position: absolute;
				right: 0;
				top: 0;
			}
		}
	}

	.entering {
		position: fixed;
		bottom: 96rpx;
		right: 32rpx;
		width: 112rpx;
		height: 112rpx;
		line-height: 112rpx;
		text-align: center;
		border-radius: 50%;
		background: rgba(24, 108, 242, 1);
		box-shadow: 2rpx 0px 20rpx 0px rgba(24, 108, 242, 0.5);
	}

	
</style>
